package com.seednia.foundation.framework.service;

/**
 * This abstract class is the base of all services.
 * The ID is the id as provided in the XML bean definition.
 * The order is used to define the order that is listed for xport/import purpose.
 * THe order is important as the dependency follows the order: the highest dependent 
 * comes at lower order.
 * 
 * Order is a 3 digit number 
 * - first digit is bundle: 0 - core, 1 - psp1, 2, psp2
 * - second digit is module order
 * Core module ordering:
 * 011 - ReferenceGeneric
 * 012 - ReferenceSizeMeasure
 * 013 - ReferenceLocType
 * 014 - ReferenceDefectType
 * 021 - Process Phase
 * 022 - Process
 * 031 - Profile
 * 041 - Project
 * 051 - Part
 * 061 - LogTime
 * 071 - LogDefect
 * 
 * 
 * @author Young Suk Ahn
 *
 */
public abstract class AbstractService implements IService {

	private String id;
	private int order;

	@Override
	public void shutdown() {
		// default: do nothing
	}
	
	@Override
	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	@Override
	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}


}
